package com.xinqi.common.core.enums;

import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 登录类型
 *
 * @author dgyu
 */
@Getter
public enum UserUseStyleEnum {

    /**
     * 电脑端
     */
    PC(1, "PC"),

    /**
     * 移动端
     */
    APP(2, "APP");

    @Getter(onMethod_ = {@JsonValue})
    private final Integer code;

    @Getter
    private final String describe;

    UserUseStyleEnum(Integer code, String describe) {
        this.code = code;
        this.describe = describe;
    }

}
